﻿///////////////////////////////////////////////////////////////////////////////
///
/// Cylan Client Core
/// Copyright (C) Shenzhen Cylan Tech. Co., Ltd. 2012
///
/// \file       Statics.h
/// \brief      统计相关API
///
///////////////////////////////////////////////////////////////////////////////
#ifndef CYLAN_STATICS_H
#define CYLAN_STATICS_H

#include "Core/Error.h"
#include "Core/Core.h"

typedef struct ICAB_CLIENT_INFO
{
    char *hwid;                             ///< 设备硬件唯一ID号
    char *icabversion;                      ///< icab移动云客户端版本
    char *oemtag;                           ///< 移动云客户端OEM标签
    char *mobiletype;                       ///< 设备类型
    char *osversion;                        ///< 操作系统版本
    char *machineinfo;                      ///< 终端设备版本
    char *resolution;                       ///< 终端设备分辨率
    char *networktype;                      ///< 上网类型
    char *ip;                               ///< ip地址
} ICAB_CLIENT_INFO;

typedef struct ICAB_USER_SUGGESTION
{
    char *comment;                         ///< 用户评论
    char *age;                             ///< 用户年龄信息
    char *sgender;                         ///< 用户性别
    
} ICAB_USER_SUGGESTION;

CC_STATUS StaticsSGALogin(const char *hwid, const char *icabversion,const char *oemtag,const char *mobiletype,
                           const char *osversion, const char *machineinfo, const char *resolution,const char *networktype  );
                           
CC_STATUS StaticsLoginInfo(void *Session, const char *hwid, const char *icabversion,const char *oemtag,const char *mobiletype,
                           const char *osversion, const char *machineinfo, const char *resolution,const char *networktype);
                           
/**
 * @fn CC_STATUS StaticsPostSuggestion(void *Session, ICAB_CLIENT_INFO *ClientInfo, ICAB_USER_SUGGESTION *Suggestion);
 * @brief 提交用户意见
 * @param Session 登陆会话
 * @param ICAB_CLIENT_INFO ClientInfo客户端基本信息
 * @param ICAB_USER_SUGGESTION Suggestion 用户意见
 * @retval ERR_SUCCESS 反馈成功
 */ 
CC_STATUS StaticsPostSuggestion(void *Session, ICAB_CLIENT_INFO *ClientInfo, ICAB_USER_SUGGESTION *Suggestion);


#endif /* CYLAN_STATICS_H */
